package inne;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class GetPostServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      response.setContentType("text/html;charset=utf8");
      PrintWriter pw = response.getWriter();
      pw.println("<html>");
      pw.println("<head>");
      pw.println("   <title>GetPostServlet</title>");
      pw.println("</head>");
      pw.println("<body>");
      pw.println("   <h3>doGet()</h3>");
      pw.println("</body>");
      pw.println("</html>");
      pw.close();  
   }  	
	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      response.setContentType("text/html;charset=utf8");
      PrintWriter pw = response.getWriter();
      pw.println("<html>");
      pw.println("<head>");
      pw.println("   <title>GetPostServlet</title>");
      pw.println("</head>");
      pw.println("<body>");
      pw.println("   <h3>doPost()</h3>");
      pw.println("</body>");
      pw.println("</html>");
      pw.close();  
	}   	  	    
}